package org.example.smartEducationBackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.smartEducationBackend.entity.POJO.Resource;

import java.util.List;
@Mapper
public interface ResourceMapper extends BaseMapper<Resource> {
    // 自定义查询方法：根据条件查询资源
    List<Resource> selectByConditions(@Param("type") String type,
                                      @Param("difficulty") Integer difficulty,
                                      @Param("tags") List<String> tags,
                                      @Param("search") String search);
}